package com.lzh.walletdemo.entity;

import java.util.List;

//日志信息
public class LogAmount {
    private int log_id; //日志表id
    private String log_date;//日志时间
    private String log_amount_change;//金额变动
    private Integer change_status;//变动状态(1表示增加金额,0表示减少金额)
    private Integer user_id;//用户id
    private UserInfo userInfo;//用户外键

    public LogAmount() {
    }

    public LogAmount(int log_id, String log_date, String log_amount_change, Integer change_status, Integer user_id, UserInfo userInfo) {
        this.log_id = log_id;
        this.log_date = log_date;
        this.log_amount_change = log_amount_change;
        this.change_status = change_status;
        this.user_id = user_id;
        this.userInfo = userInfo;
    }

    public int getLog_id() {
        return log_id;
    }

    public void setLog_id(int log_id) {
        this.log_id = log_id;
    }

    public String getLog_date() {
        return log_date;
    }

    public void setLog_date(String log_date) {
        this.log_date = log_date;
    }

    public String getLog_amount_change() {
        return log_amount_change;
    }

    public void setLog_amount_change(String log_amount_change) {
        this.log_amount_change = log_amount_change;
    }

    public Integer getChange_status() {
        return change_status;
    }

    public void setChange_status(Integer change_status) {
        this.change_status = change_status;
    }

    public Integer getUser_id() {
        return user_id;
    }

    public void setUser_id(Integer user_id) {
        this.user_id = user_id;
    }

    public UserInfo getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(UserInfo userInfo) {
        this.userInfo = userInfo;
    }

    @Override
    public String toString() {
        return "LogAmount{" +
                "log_id=" + log_id +
                ", log_date='" + log_date + '\'' +
                ", log_amount_change='" + log_amount_change + '\'' +
                ", change_status=" + change_status +
                ", user_id=" + user_id +
                ", userInfo=" + userInfo +
                '}';
    }
}
